package org.dromara.apartment.domain.bo;

import org.dromara.apartment.domain.GraphInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 图片信息业务对象 graph_info
 *
 * @author ckj
 * @date 2025-06-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = GraphInfo.class, reverseConvertGenerate = false)
public class GraphInfoBo extends BaseEntity {

    /**
     * 图片id
     */
    @NotNull(message = "图片id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 图片名称
     */
    private String name;

    /**
     * 图片所属对象类型（1:apartment,2:room）
     */
    private Integer itemType;

    /**
     * 图片所有对象id
     */
    private Long itemId;

    /**
     * 图片地址
     */
    private String url;


}
